#ifndef DEVELOPAREA_H
#define DEVELOPAREA_H

#include <QWidget>
#include "housingdbms.h"
#include "formtableviewer.h"

namespace Ui {
    class DevelopArea;
}

class DevelopArea : public QWidget
{
    Q_OBJECT
    HousingDBMS *mp_dbms;
    HousingSettings *mp_hs;
    FormTableViewer *mp_dbtable;
    QWidget *mp_current_tedit;

    QStringList read_families();
    QStringList read_names();

public:
    explicit DevelopArea(HousingDBMS *p_dbms, HousingSettings *p_hs, QWidget *parent = 0);
    void db_ready();

    ~DevelopArea();

private slots:
    void on_btn_form_street_dict_clicked();

    void on_btn_form_families_dict_clicked();

    void on_btn_form_names_dict_clicked();

    void on_btnClose_clicked();

    void on_combo_tables_currentIndexChanged(int index);

    void data_selected(QVariant qv_pkey, QHash<int, QVariant> qh_data);

    void on_btn_form_houses_clicked();

    void on_btn_test_clicked();

    void on_btn_form_apartments_clicked();

    void on_btn_form_persons_db_clicked();

    void on_btn_form_tenants_clicked();

    void on_btn_form_fam_memebers_clicked();

    void on_btn_leases_clicked();

    void on_btn_fake_payments_clicked();

private:
    Ui::DevelopArea *ui;
};

#endif // DEVELOPAREA_H
